import antfu from '@antfu/eslint-config';

export default antfu({
  stylistic: {
    indent: 2,
    semi: true,
  },
  jsonc: {
    overrides: {
      'style/eol-last': 'error',
    },
  },
  vue: {
    overrides: {
      'vue/block-order': [
        'error',
        { order: ['template', 'script', 'style'] },
      ],
    },
  },
  rules: {
    'no-undef': 'warn',
    'unicorn/consistent-function-scoping': 'off',
    'antfu/if-newline': 'off',
  },
});
